#include <QtGui/QApplication>
//#include "mainwindow.h"
#include "vkaudioadaptor.h"
#include "QVariant"
#include "vkaindicator.h"
#include "mpris/mpris.h"
static VKAIndicator* vkIndicator;

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    a.setApplicationName("VKAudio");
    //MainWindow w;
    //w.show();
    QDBusConnection::sessionBus().registerService("org.mpris.MediaPlayer2.VKAudio");
    qDebug() << "create adapter";
    //VKAudioAdapter adapter;
    MprisAdaptor adapter;
    //Mpris1 adapter;
    qDebug() << "start app";
    //VKAudioAdapter adapter;

    //QDBusConnection connection = QDBusConnection::connectToBus(QDBusConnection::SessionBus, "org.mpris.MediaPlayer2");

    qDebug() << "register Service";
#ifndef NO_INDICATE
    vkIndicator = new VKAIndicator();
#endif
    return a.exec();
}
